#define _CRT_SECURE_NO_WARNINGS 1
#include"List.h"

void ListTest01()
{
	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPrint(plist);

	//LTPushFront(plist, 2);
	//LTPushFront(plist, 3);
	//LTPushFront(plist, 4);
	//LTPrint(plist);

	//LTPopBack(plist);
	//LTPrint(plist);

	//LTPopFront(plist);
	//LTPrint(plist);

	//LTPopFront(plist);
	//LTPrint(plist);	

	//LTPopFront(plist);
	//LTPrint(plist);

	//LTNode* pos = LTFind(plist, 100);
	//assert(pos);
	//LTInsert(pos, 100);
	//LTPrint(plist);

	//LTErase(pos);
	//LTPrint(plist);

	LTDesTory2(plist);
	plist = NULL;

}
int main()
{
	ListTest01();

	return 0;
}